﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="SignUp(Mem).aspx.cs" Inherits="outREACH.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <div id="header-wrapper">
     
		<div id="header">
       
			<div id="menu">
            
				<ul>
					<li class="current_page_item"><a id="A1" href="~/Default.aspx" runat="server">HOME</a></li>
					<li><a id="A2" href="~/All(NonMember)/Education.aspx" runat="server">EDUCATION</a></li>
					<li><a id="A3" href="~/All(NonMember)/Medical.aspx" runat="server">MEDICAL</a></li>
					<li><a id="A4" href="~/All(NonMember)/Infrastructure.aspx" runat="server">INFRA STRUCTURE</a></li>
					<li><a id="A5" href="~/All(NonMember)/Donation.aspx" runat="server">DONATION</a></li>
					<li><a id="A6" href="~/ContactUs_NonMem.aspx" runat="server">CONTACT US</a></li>
				</ul>
               
			</div>
            
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:ImageButton ID="ImageButton1" runat="server" Height="170px" 
                ImageUrl="~/Images/Untitled-2.png" Width="175px" 
                PostBackUrl="~/Default.aspx" />
		</div>
	</div>

    <SCRIPT TYPE="text/javascript">
<!--
    function popup(mylink, windowname) {
        if (!window.focus) return true;
        var href;
        if (typeof (mylink) == 'string')
            href = mylink;
        else
            href = mylink.href;
        window.open(href, windowname, 'width=515,height=200,scrollbars=yes');
        return false;
    }
//-->
</SCRIPT>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:Panel ID="Panel5" runat="server" Height="1030px">
        <p>
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="16pt" 
            Text="By Signing Up, you are:" align = "center"></asp:Label>
            &nbsp;</p>
        <p>
            - Helping all the people who are in need of help in the developing countries</p>
        <p>
            - Donating money to the developing countries</p>
        <p>
            - Enhance their Education, Medical and Infrastructure sectors of the developing 
            countries</p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </asp:Panel>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel4" runat="server" Height="1030px" ScrollBars="Vertical" 
        Font-Size="13pt" ForeColor="Black">
        <p>
            <asp:Label ID="inf" runat="server" Font-Bold="True" Font-Italic="True" 
            Font-Size="20pt" Text="SIGN UP   "></asp:Label>
            &nbsp;</p>
        <p>
            First Name:&nbsp;<asp:TextBox ID="TextBox2" runat="server" Width="150px" 
                ontextchanged="TextBox2_TextChanged"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="TextBox2" ErrorMessage="First Name cannot be blank" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Last Name:
            <asp:TextBox ID="TextBox3" runat="server" Width="150px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                ControlToValidate="TextBox3" ErrorMessage="Last name is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Desired Username:
            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;<asp:Button ID="Button5" runat="server" CausesValidation="False" 
                onclick="Button5_Click" Text="Check Availability!" />
            &nbsp;<asp:Label ID="Label2" runat="server" 
                ForeColor="Red" Text="This Username is taken! Please Re-Enter!" Visible="False"></asp:Label>
            &nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="TextBox4" ErrorMessage="Required field cannot be left blank" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:Label ID="Label3" runat="server" ForeColor="Red" 
                Text="This Username is Available!" Visible="False"></asp:Label>
        </p>
        <p>
            Password:
            <asp:TextBox ID="TextBox5" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                ControlToValidate="TextBox5" ErrorMessage="Password is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Confirm Password:&nbsp;<asp:TextBox ID="TextBox6" runat="server" 
            TextMode="Password" Width="150px"></asp:TextBox>
            &nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" 
                ControlToCompare="TextBox6" ControlToValidate="TextBox5" 
                ErrorMessage="Password must be the same" ForeColor="Red"></asp:CompareValidator>
        </p>
        <p>
            Gender:
            <asp:DropDownList ID="DropDownList3" runat="server" Height="19px" Width="78px">
                <asp:ListItem>Male</asp:ListItem>
                <asp:ListItem>Female</asp:ListItem>
            </asp:DropDownList>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                ControlToValidate="DropDownList3" ErrorMessage="Please select a gender" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:FileUpload ID="FileUpload1" runat="server" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </p>
        <p>
            Date-Of-Birth (dd/MM/yyyy):&nbsp;<asp:TextBox ID="TextBox14" runat="server" Height="22px" 
                Width="169px"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="TextBox14" 
                ErrorMessage="Required field cannot be left blank" ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:Image ID="Image1" runat="server" />
        </p>
        <p>
            Contact Number:
            <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
            &nbsp;(HP)&nbsp;&nbsp;&nbsp;&nbsp;
            </p>
        <p>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
            &nbsp;(Home)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="TextBox9" ErrorMessage="Home contact number is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Email:&nbsp;<asp:TextBox ID="TextBox10" runat="server" Width="260px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="TextBox10" ErrorMessage="Email is required" ForeColor="Red"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="TextBox10" ErrorMessage="Invalid Email expression" 
                ForeColor="Red" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </p>
        <p>
            Confirm Email:
            <asp:TextBox ID="TextBox11" runat="server" Width="260px"></asp:TextBox>
            &nbsp;<asp:CompareValidator ID="CompareValidator2" runat="server" 
                ControlToCompare="TextBox11" ControlToValidate="TextBox10" 
                ErrorMessage="Email must be the same" ForeColor="Red"></asp:CompareValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="TextBox11" ErrorMessage="Invalid Email expression" 
                ForeColor="Red" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
        </p>
        <p>
            Country: &nbsp;&nbsp; <asp:DropDownList ID="DropDownList4" runat="server" 
                DataSourceID="ObjectDataSource1" DataTextField="Country" 
                DataValueField="Country" Width="199px">
            </asp:DropDownList>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                ControlToValidate="DropDownList4" ErrorMessage="Country is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
        <p>
            City:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                ControlToValidate="TextBox15" ErrorMessage="City is required" ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Address:&nbsp;&nbsp;
            <asp:TextBox ID="TextBox12" runat="server" Width="465px" Height="31px"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="TextBox12" ErrorMessage="Address is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <p>
            Zip Code:
            <asp:TextBox ID="TextBox13" runat="server" Height="23px"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="TextBox13" ErrorMessage="Zipcode is required" 
                ForeColor="Red"></asp:RequiredFieldValidator>
        </p>
        <br />
        <img src="JpegImage.aspx"><br>
        <br />
        <br />
        <p>
            <strong>Enter the code shown above:</strong><br>
            <asp:TextBox ID="CodeNumberTextBox2" runat="server" Width="164px"></asp:TextBox>
            <br>
            <asp:Button ID="Button6" runat="server" CausesValidation="False" 
                onclick="Button4_Click" Text="Load Another Image" />
            <br>
            <br>
            <br>
            <asp:Label ID="MessageLabel" runat="server"></asp:Label>
            <br>
                     


           
        </p>
    
        <p>
        
     

           

            <asp:Button ID="Button4" runat="server" CausesValidation="False" 
                onclick="Button4_Click" Text="View terms and conditions" />
        
     

           

 </p>
        
        
        </asp.panel>
       
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button3" runat="server" Height="29px" onclick="Button3_Click" 
                Text="Create my Account." Width="467px" />
        <br />
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetCountries" 
            TypeName="outREACH.App_Code.Countries"></asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
